package com.suny.Pen.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.io.Serializable;

@Data
@Schema(description = "修改圈舍DTO")
public class PenUpdateDTO  implements Serializable {
    @NotNull(message = "圈舍ID不能为空")
    @Schema(description = "圈舍ID")
    private Integer penId;
    
    @NotBlank(message = "圈舍名称不能为空")
    @Size(max = 50, message = "圈舍名称最长50个字符")
    @Schema(description = "圈舍名称")
    private String penName;
} 